<#assign menu="urlconfig">
<#assign submenu="urlconfig_add">
<#include "/system/head.ftl">
<!--main content start-->
<section id="main-content">
	<section class="wrapper">
		<!-- page start-->
		<form id="fileForm" action="${basePath}/admin/urlconfig/add.json"  autocomplete="off"  method="post">
		<div class="row">
			<div class="col-lg-9">
				<section class="panel">
					<header class="panel-heading"> 名称 </header>
					<div class="panel-body">
						<input type="text" class="form-control" name="name" >
					</div>
				</section>			
				<section class="panel">
					<header class="panel-heading"> url </header>
					<div class="panel-body">
						<input type="text" class="form-control" name="url" >
					</div>
				</section>
			</div>
				<div class="form-group">
							<button class="btn btn-shadow btn-primary" type="submit">发布</button>
			</div>
		</div>
		</form>
		<!-- page end-->
	</section>
</section>
<!--main content end-->
<script type="text/javascript">
 
$(function(){
	$('#fileForm').ajaxForm({
	 
		success:function(data){
		   	if(data.result){
		   		bootbox.alert("保存成功");
		   		location.href ="${basePath}/admin/urlconfig/page.htm";
		   	}
		}
	});
	 
});
</script>
<#include "/system/foot.ftl">
 